package com.share.shareplatform.sharegoods.dao;


import com.share.shareplatform.pojo.Type;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TypeDao {
    Long addOne(Type type);
    Integer updateOne(Type type);
    Integer deleteOneById(Long id);
    Integer deleteAllByIds(Long[] ids);
    Type findOneByName(String name);
    Type findOneById(Long id);
    List<Type> findAll();

}
